﻿using System;
using Storm.TextEditor.Editor.Text;

namespace Storm.TextEditor.Editor
{
    public class TextEventArgs : EventArgs
    {
        private string text;
        private TextPoint point;
        private TextRange range;
        public string Text
        {
            get { return text; }
            internal set { text = value; }
        }

        public TextRange Range
        {
            get { return range; }
            internal set { range = value; }
        }

        public TextPoint Point
        {
            get { return point; }
            internal set { point = value; }
        }

        public TextEventArgs()
        {
        }

        public TextEventArgs(string text, TextPoint point, TextRange range)
        {
            this.text = text;
            this.point = point;
            this.range = range;
        }
    }
}
